<?php
namespace app\index\model;

use think\Model;

class Role extends Model
{

    //设置完整的数据表(包含前缀)
    protected $table = 'think_role';

    public function user()
    {
        //角色 BELONGS_TO_MANY 用户
        return $this->belongsToMany('User', 'think_access');
    }

}
